<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>1111</title>
</head>
<body>
<div align="center">
<h5>注册帐号</h5>
<form action="#" method="get">
    <table border="1" width="40%" cellpadding="0"cellspacing="0" align="center" bgcolor="#ffffe0">
        <tr>
            <td align="center"><label for="username">昵称:</label></td>
            <td><input type="text" name="username" id="username" placeholder="请输入昵称" required pattern="[-\w\u4E00-\u]"></td>
        </tr>
        <tr>
            <td align="center"><label for="password1">密码:</label></td>
            <td><input type="password" name="password1" id="password1" placeholder="请输入密码" required pattern="[A-Z]|[a-z]{6,16}"></td>
        </tr>
        <tr>
            <td align="center"><label for="password2">确认密码:</label></td>
            <td><input type="password" name="password2" id="password2" placeholder="请再次确认密码" required pattern="[A-Z]|[a-z]{6,16}"></td>
        </tr>
        <tr>
            <td align="center"><label for="num">手机号码:</label></td>
            <td><input type="text" name="num" id="num" placeholder="请输入手机号" required pattern="^1[3,5,7,8]\d{9}"></td>
        </tr>
        <tr>
            <td align="center"><label for="email"></label>邮箱:</td>
            <td><input type="email" name="email" id="email" placeholder="请输入邮箱号"></td>
        </tr>
        <tr>
            <td align="center"><label for="age">年龄:</label></td>
            <td><input type="age" name="age" id="age" placeholder="请输入年龄" required pattern="[1-9]|[1-9]\d|1[0-9]\d"></td>
        </tr>
        <tr>
            <td align="center"><label for="ID">身份证:</label></td>
            <td><input type="text" name="ID" id="ID" placeholder="请输入身份证" required pattern="\d{6}[1-2]\d{3}(0[1-9]|1[0-2])\d{5}(\d|x)"></td>
        </tr>
        <tr>
            <td colspan="2" align="center"><input type="submit" value="提交">
                <input type="reset" value="重置">
            </td>
        </tr>

    </table>
</form>
<!--<form action="#" method="get" >-->
    <!--&lt;!&ndash;<p>昵称<input type="text" name="username" placeholder="请输入昵称" required pattern="[-\w\u4E00-\u]"></p>&ndash;&gt;-->
    <!--&lt;!&ndash;<p>密码<input type="password" name="password1" placeholder="请输入密码" required pattern="[A-Z]|[a-z]{6,16}"></p>&ndash;&gt;-->
    <!--&lt;!&ndash;<p>确认密码<input type="password" name="password2" placeholder="请再次确认密码" required pattern="[A-Z]|[a-z]{6,16}"></p>&ndash;&gt;-->
    <!--&lt;!&ndash;<p>手机号码<input type="text" name="num" placeholder="请输入手机号" required pattern="^1[3,5,7,8]\d{9}"></p>&ndash;&gt;-->
    <!--&lt;!&ndash;<p>邮箱<input type="email" name="email" placeholder="请输入邮箱号"></p>&ndash;&gt;-->
    <!--&lt;!&ndash;<p>年龄<input type="age" name="age" placeholder="请输入年龄" required pattern="\d[1-9]\d|1[0-2]"></p>&ndash;&gt;-->
    <!--&lt;!&ndash;<p>身份证<input type="text" name="iqcard" placeholder="请输入身份证" required pattern="\d{6}[1-2]\d{3}(0[1-9]|1[0-2])\d{5}(\d|x)"></p>&ndash;&gt;-->
    <!--&lt;!&ndash;<p><input type="submit" value="提交">&ndash;&gt;-->
    <!--&lt;!&ndash;<input type="reset" value="重置"></p>&ndash;&gt;-->
 <!--</form>-->
</div>
</body>
</html>